home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / contrib / pdcurs22 / include / panel.h < prev   
Encoding:
C/C++ Source or Header  |  1995-01-26  |  1.9 KB  |  66 lines

  1. /*
  2. ***************************************************************************
  3. * This file comprises part of PDCurses. PDCurses is Public Domain software.
  4. * You may use this code for whatever purposes you desire. This software
  5. * is provided AS IS with NO WARRANTY whatsoever.
  6. * Should this software be used in another application, an acknowledgement
  7. * that PDCurses code is used would be appreciated, but is not mandatory.
  8. *
  9. * Any changes which you make to this software which may improve or enhance
  10. * it, should be forwarded to the current maintainer for the benefit of 
  11. * other users.
  12. *
  13. * The only restriction placed on this code is that no distribution of
  14. * modified PDCurses code be made under the PDCurses name, by anyone
  15. * other than the current maintainer.
  16. * See the file maintain.er for details of the current maintainer.
  17. ***************************************************************************
  18. */
  19. /* 
  20. $Id
  21. */
  22. /*
  23. *----------------------------------------------------------------------
  24. *                Panels for PDCurses
  25. *----------------------------------------------------------------------
  26. */
  27.  
  28. #include <curses.h>
  29.  
  30. typedef struct panelobs
  31. {
  32.     struct panelobs *above;
  33.     struct panel *pan;
  34. } PANELOBS;
  35.  
  36. typedef struct panel
  37. {
  38.     WINDOW *win;
  39.     int wstarty;
  40.     int wendy;
  41.     int wstartx;
  42.     int wendx;
  43.     struct panel *below;
  44.     struct panel *above;
  45.     char *user;
  46.     struct panelobs *obscure;
  47. } PANEL;
  48.  
  49. WINDOW *panel_window(PANEL *pan);
  50. void update_panels(void );
  51. int hide_panel(PANEL *pan);
  52. int show_panel(PANEL *pan);
  53. int del_panel(PANEL *pan);
  54. int top_panel(PANEL *pan);
  55. int bottom_panel(PANEL *pan);
  56. PANEL *new_panel(WINDOW *win);
  57. PANEL *panel_above(PANEL *pan);
  58. PANEL *panel_below(PANEL *pan);
  59. int set_panel_userptr(PANEL *pan,char *uptr);
  60. char *panel_userptr(PANEL *pan);
  61. int move_panel(PANEL *pan,int starty,int startx);
  62. int replace_panel(PANEL *pan,WINDOW *win);
  63.  
  64. /* end of panel.h */
  65.